import { ref } from 'vue'
const useIndex = () => {
  const currentIndex = ref(0)
  const handleClick = (index,url) => {
    currentIndex.value = index
    // window.open(url,'_blank','width=1100,height=800')
    myApi.openNewWindow(url)
  }
  return {
    currentIndex,
    handleClick
  }
}
export default useIndex